Docs

This page contains the documentation for the classes and methods in the census_api package.


class census_query.CensusQuery

Object to query US Census API

method census_query.CensusQuery.query(self, variables, state, county=None, tract="*", year=None)

Queries Census API to get data regarding listed variables; if year provided, ignores CensusData instance year

Args:

Returns:


function utils.get_county_fips(county, state)

Uses addfips library to get FIPS codes for counties

Args:

Returns:

function utils.zero_pad_state(state)

Returns state FIPS code zero-padded to 2 digits

Args:

Returns: